Add uuid to host record returned by host_get_record. libxen fails to parse the host...
authorjfehlig@jfehlig2.provo.novell.com <jfehlig@jfehlig2.provo.novell.com>
Tue, 14 Nov 2006 00:23:49 +0000 (17:23 -0700)
committerjfehlig@jfehlig2.provo.novell.com <jfehlig@jfehlig2.provo.novell.com>
Tue, 14 Nov 2006 00:23:49 +0000 (17:23 -0700)
Signed-off-by: Jim Fehlig <jfehlig@novell.com>
tools/python/xen/xend/XendAPI.py

index 641c7e5180d1800cb2d87e113573554d0dc690ae..c434cb79eb68cb4e72d2ac0a287776324214c794 100644 (file)
@@ -481,7 +481,8 @@ class XendAPI:
     def host_get_record(self, session, host_ref):
         node = XendNode.instance()
         dom = XendDomain.instance()
-        record = {'name_label': node.name,
+        record = {'uuid': node.uuid,
+                  'name_label': node.name,
                   'name_description': '',
                   'software_version': node.xen_version(),
                   'resident_VMs': dom.get_domain_refs(),